import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'  // 引用官方插件
 
export default defineConfig({
	plugins: [
		uni()
	],
	server: {
		proxy: {
			'/api': {
				target: 'http://127.0.0.1:8000', // 目标服务  
				changeOrigin: true,
				rewrite: path => path.replace(/^\/api/, ''),
			}
		}
	}
})


